import service from '../utils/request'

//一个请求封装一个函数
export function user_login( payload = {} ){
    return service.post('/api/user/login', payload );
}
export function user_register( payload = {} ){
    return service.post('/api/user/register', payload );
}
export function role_list( payload = {} ){
    return service.get('/api/role/list', { params: payload } );
}

//...